package com.tangcco.lockwell.domain.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * @author yanxinping
 * @version 1.0
 * @description: TODO
 * @date 2024/12/18 16:00
 */
public enum ExamPaperTypeEnum {
    EXERCISE(1,"刷题"),
    WEEKTEST(2,"周测");

    private int code;
    private String desc;

    ExamPaperTypeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
        }

    public int getCode() {
        return code;
    }
    public String getDesc() {
        return desc;
    }

    private static final Map<Integer, ExamPaperTypeEnum> keyMap = new HashMap<>();

    static {
        for (ExamPaperTypeEnum item : ExamPaperTypeEnum.values()) {
            keyMap.put(item.getCode(), item);
        }
    }



}
